<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.yh.news.biz.*,com.yh.news.entity.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻详情</title>
</head>
<body>

<%
   String id=request.getParameter("id");
   News news=null;
   if(id!=null){
	   Integer nid=Integer.valueOf(id);
	   NewsBiz nbiz=new NewsBiz();
	   news=nbiz.showNewsById(nid);
   }
%>
<table class="table" border="1px" cellpadding="0" cellspacing="0">
	<caption>新闻详情</caption>

      <tr>
			<th>编号</th>
			<th><%=news.getNid() %></th>
      </tr>
 
   
      <tr>
         <td>标题</td>
         <td><%=news.getNtitle() %></td>
      </tr>
      <tr>
         <td>内容</td>
         <td><%=news.getNcontent() %></td>
      </tr>
   
</table>
</body>
</html>